import myaxios from "../MyAxios";
import URLENV from '@/http/BaseUrl';
const HYRJURL = URLENV.HYRJURL
const adminApi={
    /**
   * 获取所有的用户
   */
    findall(){
        let url = HYRJURL + '/user/all'
        return myaxios.get(url)
    },
    /**
   * 模糊查询用户
   */
     findname(params){
        let url = HYRJURL + '/user/name'
        return myaxios.post(url,params)
    },
    /**
   * 注册账号
   */
    useradd(params){
        let url = HYRJURL + '/user/add'
        return myaxios.post(url,params)
    },
     /**
   * 登录
   */
    login(params){
        let url = HYRJURL + '/user/login'
        return myaxios.post(url,params)
    },
    /**
   * 通过id修改头像
   */
     userid(params){
        let url = HYRJURL + '/userid'
        return myaxios.post(url,params)
    },
}
export default adminApi;